<ion-view>
  <ion-header-bar class="bar bar-header header">
    <button ui-sref="tab.meIndex" class="button return-btn">返回</button>
    <h1 class="title" ng-click="backToTop()">个人资料</h1>
    <a on-touch="saveMeInfo()" class="button hd-red-btn">保存</a>
  </ion-header-bar>
  <ion-content class="gray-bg" has-bouncing="true">


    <div class="my-top-list">
      <div class="dimple-hd-user">
        <div class="dimple-hd-user-box">
          <img ng-src="{{ENV.picPath}}{{myData.member_img_url}}" ng-click="showSelectOption()"/>
          <input type="hidden" ng-model="myData.member_img_url">
          <i class="dimple-hd-user-icon"><img ng-src="{{ENV.picPath}}{{myData.mr_img_url}}" ng-bind="myData.mr_img_url"/></i>
        </div>

        <!--判断“去认证”按钮的状态，当未审核时-->
        <a class="my-hd-btn" type="button" ng-if="!isIdentity" ng-click="sendIdentifyMsg()">去认证</a>

        <!--判断“去认证”按钮的状态，当审核失败时-->
        <a class="my-hd-btn" type="button" ng-if="identityFailed" ng-click="sendIdentifyMsg()">重新认证</a>

      </div>
    </div>

    <div class="list">
      <div class="item item-input my-data-item">
        <span class="input-label my-data-item-tit">用户名</span>
        <input type="text" ng-model="myData.member_name" >
      </div>

      <a class="item item-input my-data-item" ng-click="showGenderSelectOption()">
        <i class="my-item-icon" ></i>
        <span class="input-label my-data-item-tit">性别</span>
        <label ng-bind="myData.member_gender"></label>
      </a>

      <!--需要日期选择控件-->
      <!--ng-click="selectBirthdayTime()" IOS-->
      <a class="item item-input my-data-item" ng-click="selectBirthdayTime()" id="bdTime">
        <i class="my-item-icon"></i>
        <span class="input-label my-data-item-tit">出生日期</span>
        <label>{{myData.member_birthday | date:'yyyy-MM-dd'}}</label>
      </a>

      <div class="item item-input my-data-item">
        <span class="input-label my-data-item-tit">职业</span>
        <input type="text" ng-model="myData.member_job">
      </div>

      <div class="item item-input my-data-item">
        <span class="input-label my-data-item-tit">爱好</span>
        <input type="text" ng-model="myData.member_hobby">
      </div>

      <div class="item item-input my-data-item">
        <span class="input-label my-data-item-tit">联系方式</span>
        <input type="text" ng-model="myData.member_contact" >
      </div>

      <div class="item item-input my-data-item">
        <span class="input-label my-data-item-tit">邮箱</span>
        <input type="text" ng-model="myData.member_email" >
      </div>

      <div class="item item-input my-data-item">
        <span class="input-label my-data-item-tit">地址</span>
        <input type="text" ng-model="myData.member_address">
      </div>

    </div>


    <div class="list">
      <a href="" ng-click="gotoModifyPwd()" class="item item-input my-data-item">
        <i class="my-item-icon"></i>
        <span class="input-label my-data-item-tit">修改密码</span>
      </a>

      <div class="item item-input my-data-item" ng-click="gotoMyPointPage()">

        <span class="input-label my-data-item-tit">身份等级</span>
        <a><label ng-bind="myData.mr_name"></label></a>

      </div>
    </div>

    <!--只有认证状态不为“未审核”，则显示下面的内容，即当isIdentity为true时-->
    <div class="list" ng-if="isHasIdentify">
      <div class="item my-status-title">
        <h3 class="my-status-tit">认证信息</h3>
      </div>
      <div class="item item-body">
        <i class="my-status-success-icon" ng-if="identityPass"></i>

        <div class="my-status-txt" ng-if="identityPass">审核通过</div>

        <i class="my-status-underway-icon" ng-if="identityContinue"></i>

        <div class="my-status-txt" ng-if="identityContinue">正在审核中</div>

        <i class="my-status-fail-icon" ng-if="identityFailed"></i>

        <div class="my-status-txt" ng-if="identityFailed">审核失败</div>

      </div>
    </div>


  </ion-content>
</ion-view>

